#pragma once
#include "..\DataManager\ShortCutManager.h"
#include "..\DataManager\CategoryManager.h"

class CAddShortCutDlg 
	: public CBkDialogImpl<CAddShortCutDlg>
	,public CWHRoundRectFrameHelper<CAddShortCutDlg>
{
public:
	CAddShortCutDlg(int nType)
		: CBkDialogImpl<CAddShortCutDlg>(IDR_BK_ADDSHORTCUT_DLG),m_nType(nType)
	{

		m_pSC = NULL;
		m_nSCType = 1;
	}

	~CAddShortCutDlg(void)
	{		
	}
protected:
	LRESULT		OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	BOOL		OnInitDialog(HWND wParam, LPARAM lParam);	
	LRESULT		OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	void		OnBkBtnClose();
	void		OnBkBtnSure();	
	void		OnBkBtnOpen();
	void		OnCheckClick();
public:
	ShortCut*				m_pSC;
	CategoryList*			m_CateList;
	CString					m_strPath;
public:
	BK_NOTIFY_MAP(IDC_RICHVIEW_WIN);
		BK_NOTIFY_ID_COMMAND(IDC_BTN_SYS_CLOSE,					OnBkBtnClose)
		BK_NOTIFY_ID_COMMAND(IDC_BTN_CATEGORY_OK,			OnBkBtnSure)
		BK_NOTIFY_ID_COMMAND(IDC_BTN_CATEGORY_CANCEL,		OnBkBtnClose)		
		BK_NOTIFY_ID_COMMAND(IDC_SHORTCUT_BTN_OPEN,			OnBkBtnOpen)	
		BK_NOTIFY_ID_COMMAND(IDC_SHORTCUT_CHB_PROC,			OnCheckClick)	
		BK_NOTIFY_ID_COMMAND(IDC_SHORTCUT_CHB_FOLDER,			OnCheckClick)	
		BK_NOTIFY_ID_COMMAND(IDC_SHORTCUT_CHB_URL,			OnCheckClick)	
	BK_NOTIFY_MAP_END()

	BEGIN_MSG_MAP_EX(CAddShortCutDlg)	
		MSG_BK_NOTIFY(IDC_RICHVIEW_WIN)
		CHAIN_MSG_MAP(CBkDialogImpl<CAddShortCutDlg>)
		CHAIN_MSG_MAP(CWHRoundRectFrameHelper<CAddShortCutDlg>)
		MESSAGE_HANDLER(WM_CREATE,				OnCreate)
		MESSAGE_HANDLER(WM_DESTROY,				OnDestroy)	
		MSG_WM_INITDIALOG(OnInitDialog)	

		
		REFLECT_NOTIFICATIONS_EX()
	END_MSG_MAP()		 

private:
	void _init();
	CEdit			m_EditPath;
	CEdit			m_EditName;
	CComboBox		m_CboCate;
	int				m_nType;
	int				m_nSCType;
	
};